package com.zhuss.common;

import com.zhuss.util.DateUtil;

public class Period {
	
	private Long startTime;
	
	private Long endTime;
	

	public Period(Long startTime, Long endTime) {
		this.startTime = startTime;
		this.endTime = endTime;
	}
	
	public Period(String startTime, String endTime) {
		this.startTime = DateUtil.toDateLongByTimeMinute(startTime);
		this.endTime = DateUtil.toDateLongByTimeMinute(endTime);
	}

	public Period() {
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	@Override
	public String toString() {
		return "Period [startTime=" + startTime + ", endTime=" + endTime + "]";
	}

}
